package simple11.facade;

import simple11.bag.BagAbstraction;
import simple11.bag.SmallBag;
import simple11.metaial.Material;
import simple11.metaial.Paper;

/**
 * 采摘服务
 */
public class PickService {
    public void doPick(){
//        袋子型号
        BagAbstraction pickBag = new SmallBag();
//        袋子材质
        Material material = new Paper();
        pickBag.setMaterial(material);

//        开始采摘
        pickBag.pick();
    }

    public void doOther(){
        System.out.println("其它服务");
    }
}
